Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ecad

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecad

node.js Elasticache Auto Discovery client

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
415
decreased by-3.26%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

node.js client for AWS Elasticache Auto Discovery Endpoint

Description

Specify a list of Elasticache Auto Discovery Endpoints to this tiny TCP client and receive in response a list of Elasticache host nodes found by each of the Auto Discovery endpoints. The result will be an array of Elasticache nodes specified in host:port notation.

Usage

var Ecad = require('ecad');
var endpoints = [
  'my-elasticache-cluster-hostname1:11211',
  'my-elasticache-cluster-hostname2:11211'];
var client = new Ecad({endpoints: endpoints, timeout: 10000});
client.fetch(function(err, hosts) {
    if (err) throw err;
    console.log(hosts);
    // that's it.
});
Options
  • retries the number of times to retry connecting to each endpoint.
  • timeout timeout connection attempt after this many ms.
  • minTimeout minimum time to wait before retrying connection. Valid only if retries is not 0.
  • maxTimeout maximum time to wait before retrying connection. Valid only if retries is not 0.

Keywords

FAQs

Package last updated on 05 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc